package gemini.castor.ui.server.service.impl;

import gemini.basic.manager.ProductManager;
import gemini.basic.model.Product;
import gemini.castor.ui.client.service.ProductService;
import gemini.castor.ui.server.service.AbstractSingleService;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class ProductServiceImpl extends
        AbstractSingleService<ProductManager> implements
        ProductService {

    @SuppressWarnings("unused")
	private final Log logger = LogFactory
            .getLog(ProductServiceImpl.class);


    @Override
    public Product getProductByCode(String code){
    	Product result = duplicateExcludeFields(getServerManager().getProductByCode(code));
    	return result;
    }

}
